package com.smart.five.ioc.annotation.lazy;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;

/**
 * 延迟加载Service
 *
 * @author junrui.wang
 * @create 2018/6/14
 */
@Service
public class LazyService {
    @Lazy  //延迟加载 @Lazy必须标注在属性和目标类上，缺一不可
    @Autowired
    private LazyDao lazyDao;
}
